package com.example.springstudy.dao.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class SkuExportDto {
    @ExcelProperty(value="ID")
    private String id;

    @ExcelProperty(value="商品名称")
    @ColumnWidth(40)
    private String name;

    @ExcelProperty(value="商品简称")
    private String shortName;

    @ExcelProperty(value="条码")
    private String code;

    @ExcelProperty(value="库存")
    private int stock;

    @ExcelProperty(value="单位")
    private String unit;

    @ExcelProperty(value="单价")
    private String price;

    @ExcelProperty(value="进价")
    private String buyPrice;

    @ExcelProperty(value="会员价")
    private String vipPrice;

    @ExcelProperty(value="类型")
    private String type;

    @ExcelProperty(value="货号")
    private String productNo;

    @ExcelProperty(value="进货商")
    private String supplierName;

    @ExcelProperty(value="生产日期")
    @DateTimeFormat("yyyy/MM/dd")
    private Date productDate;

    @ExcelProperty(value="保质期")
    private String shelfLife;

    @ExcelProperty(value="创建时间")
    @DateTimeFormat("yyyy/MM/dd HH:mm:ss")
    private Date createTime;

}
